﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DungeonGenerator
{
    using System.Diagnostics;

    static class LinqPadExtensions
    {
        public static T Dump<T>(this T t,string message=null){
            if(message != null)
                Trace.WriteLine(Newtonsoft.Json.JsonConvert.SerializeObject(t),message);
            else
            Trace.WriteLine(Newtonsoft.Json.JsonConvert.SerializeObject(t));
            return t;
        }
        
    }
}
